import request from '@/utils/request'

// 获取评论列表 /admin/comment/list
export function getCommentList(params) {
  return request({
    url: '/admin/comment/list',
    method: 'get',
    params
  })
}

//删除评论 ids
export function deleteComment(data) {
  return request({
    url: '/admin/comment/delete',
    method: 'delete',
    data
  })
}

//审核评论
export function checkComment(data) {
  return request({
    url: '/admin/comment/pass',
    method: 'put',
    data
  })
}